package com.wuyb.controller;

import com.wuyb.pojo.entity.BaseResponse;
import com.wuyb.service.MenuService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 管理员操作Menu接口
 *
 * @Author: wyb
 * @Date: 2024/01/08/19:03
 * @Description:
 */
@Api(tags = "管理员操作meeting接口")
@RestController
@RequestMapping("/admins/menu")
public class MenuController {

    @Resource
    private MenuService menuService;

    @ApiOperation(value = "通过用户ID查询菜单列表")
    @GetMapping
    public BaseResponse<?> getMenusByAdminId(){
        return menuService.getMenuByUserId();
    }
}
